/*
 * Copyright (C) 2013 Daniel Wasilew <daniel.wasilew@codeminer.org>
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

package org.codeminer.parts.specification.html;

import de.wusel.picotask.xml.element.XMLElement;
import org.codeminer.parts.specification.general.FilePart;

import java.io.PrintWriter;

/**
 * User: Daniel Wasilew <daniel.wasilew@codeminer.org>
 * Date: 03.03.13
 * Time: 09:21
 */
public class HeadPart implements FilePart {
    @Override
    public void writeTo(PrintWriter writer, XMLElement parsedElement) {
        writer.print("<!DOCTYPE html>\n" +
                "<html lang=\"en\">\n" +
                "<head>\n" +
                "    <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\n" +
                "    <meta charset=\"utf-8\">\n" +
                "    <title>Parts Api Documentation</title>\n" +
                "    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n" +
                "    <meta name=\"description\" content=\"\">\n" +
                "    <link href=\"help/css/bootstrap.css\" rel=\"stylesheet\">\n" +
                "    <link href=\"help/css/custom.css\" rel=\"stylesheet\">\n" +
                "    <link href=\"help/css/prettify.css\" rel=\"stylesheet\">\n" +
                "    <link href=\"help/css/bootstrap-responsive.css\" rel=\"stylesheet\">\n" +
                "    <link rel=\"apple-touch-icon-precomposed\" sizes=\"144x144\" href=\"help/ico/apple-touch-icon-144-precomposed.png\">\n" +
                "    <link rel=\"apple-touch-icon-precomposed\" sizes=\"114x114\" href=\"help/ico/apple-touch-icon-114-precomposed.png\">\n" +
                "    <link rel=\"apple-touch-icon-precomposed\" sizes=\"72x72\" href=\"help/ico/apple-touch-icon-72-precomposed.png\">\n" +
                "    <link rel=\"apple-touch-icon-precomposed\" href=\"help/ico/apple-touch-icon-57-precomposed.png\">\n" +
                "    <link rel=\"shortcut icon\" href=\"help/ico/favicon.png\">\n" +
                "    <style type=\"text/css\"></style>\n" +
                "</head>");
    }
}
